package com.int_tech.car.entity;/**
 * Created by Administrator on 2017/12/5.
 */

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 车牌号城市缩写
 *
 * @author dmy
 * @create 2017-12-05 16:37
 **/
@Entity
@Table(name = "c_city")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class City {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(length = 8)
    private Integer id;

    @Column(length = 64)
    private String city;

    @Column(length = 64)
    private String cityNumber;
}
